﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="WinnerCMS.WebUI.Admin.Member.Message"
    CodeBehind="Message.aspx.cs" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head runat="server">
    <title>短消息管理</title>
    <meta http-equiv="Pragma" content="No-cach" />
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    
    
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table id="NavigationPath">
                <tr>
                    <td style="width: 400px">
                        <asp:Literal ID="L_Path" runat="server"></asp:Literal>
                    </td>
                    <td style="width: auto" class="form-inline">
                        <asp:DropDownList ID="ddlSort" runat="server" CssClass="span2">
                            <asp:ListItem Value="Sender">发信人</asp:ListItem>
                            <asp:ListItem Value="Incept">昵称</asp:ListItem>
                            <asp:ListItem Value="Title">标题</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="txtKeyWord" runat="server"></asp:TextBox><asp:Button ID="btnSearch" runat="server" Text="搜索" Style="cursor: pointer" EnableViewState="False"
                            OnClick="btnSearch_Click" Cssclass="btn btn-default"></asp:Button>
                    </td>
                </tr>
            </table>
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                Width="99%" OnRowDataBound="GV_List_RowDataBound" OnRowCommand="GV_List_RowCommand"
                OnRowDeleting="GV_List_RowDeleting" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                <HeaderStyle CssClass="HeaderStyle"></HeaderStyle>
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <input type="checkbox" name="chk_SelectAll" value="chk_SelectAll" onclick="javascript:SelectAll(this);" /></HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbkSelectID" runat="server" />
                        </ItemTemplate>
                        <ItemStyle Width="30px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Sender" HeaderText="发信人">
                        <ItemStyle HorizontalAlign="Center" Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Incept" HeaderText="收信人">
                        <ItemStyle HorizontalAlign="Center" Width="80px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="短信标题" DataField="Title" />
                    <asp:BoundField DataField="SendTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="发信时间"
                        HtmlEncode="False">
                        <ItemStyle HorizontalAlign="Center" Width="120px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="是否已读">
                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemTemplate>
                            <%# Convert.ToBoolean(Eval("isRead")) ? "已读" : "未读" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField CommandName="Delete" HeaderText="删除" Text="删除">
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle Width="50px" />
                    </asp:ButtonField>
                </Columns>
            </asp:GridView>
            <div class="form-inline">
                <asp:DropDownList ID="ddlBatchToDo" runat="server">
                    <asp:ListItem Selected="True" Value="0">--请选择--</asp:ListItem>
                    <asp:ListItem Value="1">批量删除短信</asp:ListItem>
                    <asp:ListItem Value="2">删除选中用户所有短信</asp:ListItem>
                    <asp:ListItem Value="3">向被选中的会员发短信</asp:ListItem>
                </asp:DropDownList>
                &nbsp;
                <asp:Button ID="btnOK" runat="server" Text="确定" EnableViewState="False" OnClick="btnOK_Click"
                    Cssclass="btn btn-default" /></div>
           
                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging">
                </WinnerCMS:PageNavigation>
   
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
